package com.hc.res;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @className：ProductItem
 * @Description：
 * @Date：2021/12/7 19:23
 * @author：Bing
 */
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_product")

public class ProductItem {

    /**
     * 商品编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "商品编号")
    private Integer id;

    /**
     * 商品名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "商品名称")
    private String name;

    /**
     * 副标题
     */
    @TableField(value = "caption")
    @ApiModelProperty(value = "副标题")
    private String caption;

    /**
     * 商品属性列表
     */
    @TableField(value = "attribute_list")
    @ApiModelProperty(value = "商品属性列表")
    private String attributeList;

    /**
     * 类别编号
     */
    @TableField(value = "category_id")
    @ApiModelProperty(value = "类别编号")
    private Integer categoryId;

    /**
     * 品牌编号
     */
    @TableField(value = "brand_id")
    @ApiModelProperty(value = "品牌编号")
    private Integer brandId;

    /**
     * 状态 1上架  2下架
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态 1上架  2下架")
    private Integer status;

    /**
     * 售后服务
     */
    @TableField(value = "service")
    @ApiModelProperty(value = "售后服务")
    private String service;

    /**
     * 备注
     */
    @TableField(value = "info")
    @ApiModelProperty(value = "备注")
    private String info;

    /**
     * 县区编号
     */
    @TableField(value = "country_id")
    @ApiModelProperty(value = "县区编号")
    private Integer countryId;

    /**
     * 具体产地
     */
    @TableField(value = "addr")
    @ApiModelProperty(value = "具体产地")
    private String addr;
}